/************************************************************************************
**                                                                                 **
**                               mcHF QRP Transceiver                              **
**                             K Atanassov - M0NKA 2014                            **
**                                                                                 **
**---------------------------------------------------------------------------------**
**                                                                                 **
**  File name:                                                                     **
**  Description:                                                                   **
**  Last Modified:                                                                 **
**  Licence:		CC BY-NC-SA 3.0                                                **
************************************************************************************/

#ifndef __IQ_RX_FILTER_AM_5KHZ_H
#define __IQ_RX_FILTER_AM_5KHZ_H

#define Q_BLOCK_SIZE		1
#define Q_NUM_TAPS			89

/*
 	 * 89 tap FIR lowpass filter for AM demodulation
     * 5 kHz lowpass
     * Fc = 2.30 kHz (0.096)
     * BW = 5.09 kHz (0.212)
     * Phase = 0.0 Deg
	 *
     * -6dB @ 5.0 kHz
     * -20dB @ 5.6 kHz
     * -40dB @ 6.0 kHz
     * -60dB > 6.2 kHz
     *
     * 20150724 by KA7OEI using Iowa Hills Hilbert Filter Designer
     *
*/

const float iq_rx_am_5k_coeffs[Q_NUM_TAPS] =
{
		-0.000045392289047881,
		-0.000004812442917794,
		0.000068727674699516,
		0.000141963927224663,
		0.000157520248119967,
		0.000060286967439699,
		-0.000162970122246712,
		-0.000451252675540791,
		-0.000669397068852781,
		-0.000655786056558042,
		-0.000308946001031250,
		0.000323862987296878,
		0.001009151276280870,
		0.001383767648753940,
		0.001108841899531180,
		0.000068694704026995,
		-0.001482086048715270,
		-0.002923873990383000,
		-0.003478042196892240,
		-0.002567012208450240,
		-0.000183058152703148,
		0.002927838581731980,
		0.005419014927265250,
		0.005850957020138160,
		0.003392366775186750,
		-0.001589789749145610,
		-0.007378579320778290,
		-0.011384168739919100,
		-0.011175196307323000,
		-0.005700279233064870,
		0.003842132441622350,
		0.013983598060774900,
		0.020024993830604200,
		0.017901468392382700,
		0.006217999161870360,
		-0.012402093620729800,
		-0.031370988485890300,
		-0.041832006141384800,
		-0.035588597131400500,
		-0.008295098525339310,
		0.038292174335735300,
		0.095971206103503100,
		0.151982896902598000,
		0.192635286648254000,
		0.207485090950182000,
		0.192635286648256000,
		0.151982896902602000,
		0.095971206103507900,
		0.038292174335739900,
		-0.008295098525336090,
		-0.035588597131399000,
		-0.041832006141385000,
		-0.031370988485891600,
		-0.012402093620731500,
		0.006217999161868930,
		0.017901468392382000,
		0.020024993830604300,
		0.013983598060775600,
		0.003842132441623320,
		-0.005700279233064020,
		-0.011175196307322600,
		-0.011384168739919100,
		-0.007378579320778620,
		-0.001589789749146100,
		0.003392366775186310,
		0.005850957020137900,
		0.005419014927265200,
		0.002927838581732100,
		-0.000183058152702952,
		-0.002567012208450050,
		-0.003478042196892130,
		-0.002923873990382970,
		-0.001482086048715290,
		0.000068694704026947,
		0.001108841899531140,
		0.001383767648753930,
		0.001009151276280870,
		0.000323862987296896,
		-0.000308946001031235,
		-0.000655786056558038,
		-0.000669397068852788,
		-0.000451252675540803,
		-0.000162970122246723,
		0.000060286967439694,
		0.000157520248119968,
		0.000141963927224668,
		0.000068727674699521,
		-0.000004812442917792,
		-0.000045392289047882
};

#endif
